package com.vue.admin.service.common.mybatis.dialect;

/**
 * @program: vue-admin-service
 * @description: 数据库方言抽象类
 * @author: zhangyangyang
 * @create: 2020-04-03 13:56
 **/
public abstract class Dialect {

    /**
     * 得到分页sql
     * @param sql
     * @return
     */
    public abstract String getCountString(String sql);

    /**
     * 得到分页sql
     * @param sql
     * @param offset
     * @param limit
     * @return
     */
    public abstract String getLimitString(String sql, int offset, int limit);
}
